﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace SmartConference.Infrastructure.Migrations
{
    public partial class 会议预约 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "MeetingReservation",
                columns: table => new
                {
                    MeetingReservationId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    MeetingTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    MeetingName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    MeetingStatus = table.Column<int>(type: "int", nullable: false),
                    MeetingRoomID = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    User = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    MeetingTheme = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Compere = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Participant = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    IsSignin = table.Column<bool>(type: "bit", nullable: false),
                    IsCommand = table.Column<bool>(type: "bit", nullable: false),
                    CommandMsg = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    IsNote = table.Column<bool>(type: "bit", nullable: false),
                    IsLongdistance = table.Column<bool>(type: "bit", nullable: false),
                    CreateId = table.Column<int>(type: "int", nullable: true),
                    CreateName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    UpdateId = table.Column<int>(type: "int", nullable: true),
                    UpdateName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    DeleteId = table.Column<int>(type: "int", nullable: true),
                    DeleteName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    DeleteTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    IsDelete = table.Column<bool>(type: "bit", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_MeetingReservation", x => x.MeetingReservationId);
                });

            migrationBuilder.UpdateData(
                table: "UserInfo",
                keyColumn: "IDNumber",
                keyValue: 1L,
                column: "Birthday",
                value: new DateTime(2025, 5, 29, 20, 16, 49, 400, DateTimeKind.Local).AddTicks(3664));
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "MeetingReservation");

            migrationBuilder.UpdateData(
                table: "UserInfo",
                keyColumn: "IDNumber",
                keyValue: 1L,
                column: "Birthday",
                value: new DateTime(2025, 5, 28, 20, 55, 47, 422, DateTimeKind.Local).AddTicks(7309));
        }
    }
}
